javax.realtime.DSS
Class Normal

java.lang.Object
  extended byjavax.realtime.DSS.Normal

public class Normal
extends java.lang.Object

Erand objects represent normally distributed pseudo random number streams.

Author:
gary

Field Summary
protected  double mean
          Mean of this normal distribution
protected  double standardDeviation
          Standard deviation of this distribution
 
Constructor Summary
Normal(double mean, double standardDeviation)
           
 
Method Summary
 double draw()
          Draw the next number in this stream.
 double nonDeterministicDraw(int howMany)
          Draw several numbers from this stream.
 double threeChoice()
          In a normal distribution probability of being in the range mean +/- one standard deviation is about 67%
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mean

protected double mean
Mean of this normal distribution


standardDeviation

protected double standardDeviation
Standard deviation of this distribution

Constructor Detail

Normal

public Normal(double mean,
              double standardDeviation)
Method Detail

draw

public double draw()
Draw the next number in this stream.

Returns:
The number drawn

nonDeterministicDraw

public double nonDeterministicDraw(int howMany)
Draw several numbers from this stream.

Parameters:
howMany - The number of numbers to be drawn.
Returns:
the number nondeterministically selected

threeChoice

public double threeChoice()
In a normal distribution probability of being in the range mean +/- one standard deviation is about 67%

Returns:
pseudo randomly generated number